package com.guomao.demos;

import java.util.ArrayList;

public class CollectionDemoC {

    public static void main(String[] args) {


//        初始容量 10
//        ArrayList<String> list = new ArrayList<>();
        ArrayList<String> list = new ArrayList<>(50);


        list.add("a");
        list.add("c");
        list.add("c");

        System.out.println(list.contains("d"));

        System.out.println(list.indexOf("a"));
        System.out.println(list.lastIndexOf("c"));

    }
}
